import {NgModule} from '@angular/core';
import {Routes, RouterModule} from '@angular/router';
import {HomeComponent} from "./home.component";
import {BlankComponent} from "./blank/blank.component";
import {TableComponent} from "./table/table.component";
import {AuthGuardService} from "../services/auth-guard.service";

const routes: Routes = [
  {
    path: '',
    component: HomeComponent,
    canActivate: [AuthGuardService],
    children: [
      {path: '', component: BlankComponent},
      {path: 'table', component: TableComponent},
    ]
  }
];


@NgModule({
  imports: [RouterModule.forChild(routes)],
  exports: [RouterModule]
})
export class HomeRoutingModule {
}
